﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DuoShouZZ.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS._6.ZhangWuGL.DuoShouZZ" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../../css/inputBgColor.css" rel="stylesheet" />
    <script src="../../../JS/jquery.js" type="text/javascript"></script>

   
    <script type="text/javascript">
        function openCenter(openUrl, iWidth, iHeight) {
            var iTop = (window.screen.availHeight - 45 - iHeight) / 2; //获得窗口的垂直位置;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
            window.showModalDialog(openUrl, "", "dialogHeight=" + iHeight + ";dialogwidth=" + iWidth + ";dialogLeft=" + iLeft + ";dialogTop=" + iTop + ";help=no;resizable=no;status=no;scrollbars=no;");
        }

        function OpenCuoWuXX() {
         
            openCenter("/Pages/QuShui/DiXiaS/6.ZhangWuGL/DuoShouZZ_CK.aspx", "780px", "420px");
        }
   </script>
    <style type="text/css">
        .auto-style3 {
            width: 108px;
        }
        .auto-style4 {
            width: 213px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            多收转账
        </div>
    <div>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblZhangWuNY" runat="server" style="font-size: 12px;" Text="账务年月"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtZhangWuNY" runat="server" Height="16px" Width="107px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>
                <div></div>
                <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="98%" Height="535px"  AutoPostBack="true">
                    <TabPages>
                        <dx:TabPage Text="多收转账">
                            <ContentCollection>
                                <dx:ContentControl Height="800px">
                                    <div>
                                        <table style="width:40%;text-align:center;height:90px;">
                                            <tr>
                                                <td><span style="font-size: 12px;">用户号：</span></td>
                                                <td class="auto-style3">
                                                    <dx:ASPxTextBox ID="txtYongHuH" Width="100%" runat="server" Enabled="true">
                                                        <ClientSideEvents 
                                                            KeyPress="function(s,e)
                                                                {
                                                                    var key = event.keyCode;
                                                                    if( key==13){$('#btnSearch').click();}
                                                                }"
                                                        />
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnSearch" runat="server" Text="查找" OnClick="btnSearch_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><span style="font-size: 12px;">用户名：</span></td>
                                                <td colspan="2">
                                                    <dx:ASPxTextBox ID="txtYongHuM" Width="100%" runat="server" Enabled="true">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><span style="font-size: 12px;">多收金额：</span></td>
                                                <td class="auto-style3">
                                                    <dx:ASPxTextBox ID="txtDuoShouJE" Width="100%" runat="server" Enabled="true">
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div>
                                        <fieldset style="border:1px solid #a3c0e8;">
                                            <legend>欠费信息</legend>
                                            <dx:ASPxGridView ID="gvQianFeiXX" runat="server" AutoGenerateColumns="False" KeyFieldName="I_FEIYONGBH" Theme="Aqua1" Width="98%">
                                            <Columns>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="20%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_YM" Caption="水量年月" Width="20%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_YINGSHOUJE" Caption="应收金额" Width="20%">
                                                    <PropertiesTextEdit DisplayFormatString="{0:N2}"></PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_SHISHOUJE" Caption="实收金额" Width="20%">
                                                     <PropertiesTextEdit DisplayFormatString="{0:N2}"></PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_QIANFEIJE" Caption="欠费金额" Width="20%">
                                                    <PropertiesTextEdit DisplayFormatString="{0:N2}"></PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <Settings VerticalScrollableHeight="70" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                                        </dx:ASPxGridView>
                                        </fieldset>
                                        
                                    </div>
                                    <hr />
                                    <div>
                                       <table style="width:40%;text-align:center; height:90px;">
                                           <tr>
                                               <td class="auto-style4"><span style="font-size: 12px;">输入水量年月：</span></td>
                                               <td>
                                                   <dx:ASPxTextBox ID="txtShuiLiangNY" Width="80%" runat="server" Enabled="true">
                                                        <ClientSideEvents 
                                                            KeyPress="function(s,e)
                                                                {
                                                                    var key = event.keyCode;
                                                                    if( key==13){$('#btnSearchQianF').click();}
                                                                }"
                                                        />
                                                    </dx:ASPxTextBox>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td class="auto-style4"><span style="font-size: 12px;">应收金额：</span></td>
                                               <td>
                                                   <dx:ASPxTextBox ID="txtYingShouJE" Width="80%" runat="server" Enabled="true">
                                                    </dx:ASPxTextBox>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td class="auto-style4"><span style="font-size: 12px;">欠费金额：</span></td>
                                               <td>
                                                   <dx:ASPxTextBox ID="txtQianFeiJE" Width="80%" runat="server" Enabled="true">
                                                    </dx:ASPxTextBox>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td class="auto-style4"><span style="font-size: 12px;">转出金额：</span></td>
                                               <td>
                                                   <dx:ASPxTextBox ID="txtZhuanChuJE" Width="80%" runat="server" Enabled="true">
                                                        <ClientSideEvents 
                                                            KeyPress="function(s,e)
                                                                {
                                                                    var key = event.keyCode;
                                                                    if( key==13){$('#btnZhuanChu').click();}
                                                                }"
                                                        />
                                                    </dx:ASPxTextBox>
                                               </td>
                                           </tr>
                                       </table>
                                    </div>
                                    <hr />
                                    <div>
                                        <table align="right">
                                            <tr>
                                                <td>
                                                    <dx:ASPxButton ID="btnZhuanChu" runat="server" Text="转出" OnClick="btnZhuanChu_Click" UseSubmitBehavior="false">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnZhuanZhangCX" runat="server" Text="已多收转账查询" ClientSideEvents-Click="function(s,e){OpenCuoWuXX();}" UseSubmitBehavior="false">
                                                        <ClientSideEvents Click="function(s,e){OpenCuoWuXX();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="取消多收转账">
                            <ContentCollection>
                                <dx:ContentControl>
                                    <div>
                                        <dx:ASPxGridView ID="gvQuXiaoDSZZ" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
                                            <Columns>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="23%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="23%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_YM" Caption="水量年月" Width="23%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_JINE" Caption="转入金额" Width="23%">
                                                    <PropertiesTextEdit DisplayFormatString="{0:N2}"></PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Width="8%">
                                                    <DataItemTemplate>
                                                        <asp:LinkButton ID="btnQuXiaoDSZZ" runat="server" CausesValidation="false" Text="取消转出" 
                                                            OnClientClick="return confirm('确认要取消该次转出吗？')" CommandArgument='<%#Eval("ID")%>' OnCommand="btnQuXiaoDSZZ_Command">
                                                        </asp:LinkButton>
                                                    </DataItemTemplate>
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <Settings VerticalScrollableHeight="200" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                                        </dx:ASPxGridView>
                                    </div>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                    </TabPages>
                </dx:ASPxPageControl>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div style="display: none;">
        <dx:ASPxButton ID="btnSearchQianF" runat="server" OnClick="btnSearchQianF_Click"></dx:ASPxButton>
        <dx:ASPxButton ID="btnZhuanChuFact" runat="server" Text="button" OnClick="btnZhuanChuFact_Click" >
        </dx:ASPxButton>
        <asp:HiddenField ID="confirmValue" runat="server" />    
    </div>
    </form>
</body>
</html>
